Optimal. Leaf size=151 \[ -\frac {b c d^4}{30 x^5}-\frac {b c^2 d^4}{5 x^4}-\frac {5 b c^3 d^4}{9 x^3}-\frac {16 b c^4 d^4}{15 x^2}-\frac {13 b c^5 d^4}{6 x}-\frac {d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}+\frac {32}{15} b c^6 d^4 \log (x)-\frac {32}{15} b c^6 d^4 \log (1-c x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {47, 37, 6083,
12, 153} \begin {gather*} -\frac {d^4 (c x+1)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (c x+1)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}+\frac {32}{15} b c^6 d^4 \log (x)-\frac {32}{15} b c^6 d^4 \log (1-c x)-\frac {13 b c^5 d^4}{6 x}-\frac {16 b c^4 d^4}{15 x^2}-\frac {5 b c^3 d^4}{9 x^3}-\frac {b c^2 d^4}{5 x^4}-\frac {b c d^4}{30 x^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 47
Rule 153
Rule 6083
Rubi steps
\begin {align*} \int \frac {(d+c d x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{x^7} \, dx &=-\frac {d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}-(b c) \int \frac {(-5+c x) (d+c d x)^4}{30 x^6 (1-c x)} \, dx\\ &=-\frac {d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}-\frac {1}{30} (b c) \int \frac {(-5+c x) (d+c d x)^4}{x^6 (1-c x)} \, dx\\ &=-\frac {d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}-\frac {1}{30} (b c) \int \left (-\frac {5 d^4}{x^6}-\frac {24 c d^4}{x^5}-\frac {50 c^2 d^4}{x^4}-\frac {64 c^3 d^4}{x^3}-\frac {65 c^4 d^4}{x^2}-\frac {64 c^5 d^4}{x}+\frac {64 c^6 d^4}{-1+c x}\right ) \, dx\\ &=-\frac {b c d^4}{30 x^5}-\frac {b c^2 d^4}{5 x^4}-\frac {5 b c^3 d^4}{9 x^3}-\frac {16 b c^4 d^4}{15 x^2}-\frac {13 b c^5 d^4}{6 x}-\frac {d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{6 x^6}+\frac {c d^4 (1+c x)^5 \left (a+b \tanh ^{-1}(c x)\right )}{30 x^5}+\frac {32}{15} b c^6 d^4 \log (x)-\frac {32}{15} b c^6 d^4 \log (1-c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 166, normalized size = 1.10 \begin {gather*} -\frac {d^4 \left (30 a+144 a c x+6 b c x+270 a c^2 x^2+36 b c^2 x^2+240 a c^3 x^3+100 b c^3 x^3+90 a c^4 x^4+192 b c^4 x^4+390 b c^5 x^5+6 b \left (5+24 c x+45 c^2 x^2+40 c^3 x^3+15 c^4 x^4\right ) \tanh ^{-1}(c x)-384 b c^6 x^6 \log (x)+387 b c^6 x^6 \log (1-c x)-3 b c^6 x^6 \log (1+c x)\right )}{180 x^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 226, normalized size = 1.50
method | result | size |
derivativedivides | \(c^{6} \left (d^{4} a \left (-\frac {4}{3 c^{3} x^{3}}-\frac {1}{6 c^{6} x^{6}}-\frac {4}{5 c^{5} x^{5}}-\frac {1}{2 c^{2} x^{2}}-\frac {3}{2 c^{4} x^{4}}\right )-\frac {4 d^{4} b \arctanh \left (c x \right )}{3 c^{3} x^{3}}-\frac {d^{4} b \arctanh \left (c x \right )}{6 c^{6} x^{6}}-\frac {4 d^{4} b \arctanh \left (c x \right )}{5 c^{5} x^{5}}-\frac {d^{4} b \arctanh \left (c x \right )}{2 c^{2} x^{2}}-\frac {3 d^{4} b \arctanh \left (c x \right )}{2 c^{4} x^{4}}+\frac {d^{4} b \ln \left (c x +1\right )}{60}-\frac {43 d^{4} b \ln \left (c x -1\right )}{20}-\frac {d^{4} b}{30 c^{5} x^{5}}-\frac {d^{4} b}{5 c^{4} x^{4}}-\frac {5 d^{4} b}{9 c^{3} x^{3}}-\frac {16 d^{4} b}{15 c^{2} x^{2}}-\frac {13 d^{4} b}{6 c x}+\frac {32 d^{4} b \ln \left (c x \right )}{15}\right )\) | \(226\) |
default | \(c^{6} \left (d^{4} a \left (-\frac {4}{3 c^{3} x^{3}}-\frac {1}{6 c^{6} x^{6}}-\frac {4}{5 c^{5} x^{5}}-\frac {1}{2 c^{2} x^{2}}-\frac {3}{2 c^{4} x^{4}}\right )-\frac {4 d^{4} b \arctanh \left (c x \right )}{3 c^{3} x^{3}}-\frac {d^{4} b \arctanh \left (c x \right )}{6 c^{6} x^{6}}-\frac {4 d^{4} b \arctanh \left (c x \right )}{5 c^{5} x^{5}}-\frac {d^{4} b \arctanh \left (c x \right )}{2 c^{2} x^{2}}-\frac {3 d^{4} b \arctanh \left (c x \right )}{2 c^{4} x^{4}}+\frac {d^{4} b \ln \left (c x +1\right )}{60}-\frac {43 d^{4} b \ln \left (c x -1\right )}{20}-\frac {d^{4} b}{30 c^{5} x^{5}}-\frac {d^{4} b}{5 c^{4} x^{4}}-\frac {5 d^{4} b}{9 c^{3} x^{3}}-\frac {16 d^{4} b}{15 c^{2} x^{2}}-\frac {13 d^{4} b}{6 c x}+\frac {32 d^{4} b \ln \left (c x \right )}{15}\right )\) | \(226\) |
risch | \(-\frac {d^{4} b \left (15 c^{4} x^{4}+40 x^{3} c^{3}+45 c^{2} x^{2}+24 c x +5\right ) \ln \left (c x +1\right )}{60 x^{6}}+\frac {d^{4} \left (3 b \,c^{6} \ln \left (c x +1\right ) x^{6}+384 c^{6} b \ln \left (-x \right ) x^{6}-387 x^{6} b \ln \left (-c x +1\right ) c^{6}-390 c^{5} x^{5} b +45 x^{4} b \ln \left (-c x +1\right ) c^{4}-90 c^{4} x^{4} a -192 c^{4} x^{4} b +120 x^{3} b \ln \left (-c x +1\right ) c^{3}-240 c^{3} x^{3} a -100 b \,c^{3} x^{3}+135 b \,x^{2} \ln \left (-c x +1\right ) c^{2}-270 a \,c^{2} x^{2}-36 b \,c^{2} x^{2}+72 b c x \ln \left (-c x +1\right )-144 c x a -6 b c x +15 b \ln \left (-c x +1\right )-30 a \right )}{180 x^{6}}\) | \(246\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 329 vs.
\(2 (133) = 266\).
time = 0.27, size = 329, normalized size = 2.18 \begin {gather*} \frac {1}{4} \, {\left ({\left (c \log \left (c x + 1\right ) - c \log \left (c x - 1\right ) - \frac {2}{x}\right )} c - \frac {2 \, \operatorname {artanh}\left (c x\right )}{x^{2}}\right )} b c^{4} d^{4} - \frac {2}{3} \, {\left ({\left (c^{2} \log \left (c^{2} x^{2} - 1\right ) - c^{2} \log \left (x^{2}\right ) + \frac {1}{x^{2}}\right )} c + \frac {2 \, \operatorname {artanh}\left (c x\right )}{x^{3}}\right )} b c^{3} d^{4} + \frac {1}{4} \, {\left ({\left (3 \, c^{3} \log \left (c x + 1\right ) - 3 \, c^{3} \log \left (c x - 1\right ) - \frac {2 \, {\left (3 \, c^{2} x^{2} + 1\right )}}{x^{3}}\right )} c - \frac {6 \, \operatorname {artanh}\left (c x\right )}{x^{4}}\right )} b c^{2} d^{4} - \frac {1}{5} \, {\left ({\left (2 \, c^{4} \log \left (c^{2} x^{2} - 1\right ) - 2 \, c^{4} \log \left (x^{2}\right ) + \frac {2 \, c^{2} x^{2} + 1}{x^{4}}\right )} c + \frac {4 \, \operatorname {artanh}\left (c x\right )}{x^{5}}\right )} b c d^{4} - \frac {a c^{4} d^{4}}{2 \, x^{2}} + \frac {1}{180} \, {\left ({\left (15 \, c^{5} \log \left (c x + 1\right ) - 15 \, c^{5} \log \left (c x - 1\right ) - \frac {2 \, {\left (15 \, c^{4} x^{4} + 5 \, c^{2} x^{2} + 3\right )}}{x^{5}}\right )} c - \frac {30 \, \operatorname {artanh}\left (c x\right )}{x^{6}}\right )} b d^{4} - \frac {4 \, a c^{3} d^{4}}{3 \, x^{3}} - \frac {3 \, a c^{2} d^{4}}{2 \, x^{4}} - \frac {4 \, a c d^{4}}{5 \, x^{5}} - \frac {a d^{4}}{6 \, x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 208, normalized size = 1.38 \begin {gather*} \frac {3 \, b c^{6} d^{4} x^{6} \log \left (c x + 1\right ) - 387 \, b c^{6} d^{4} x^{6} \log \left (c x - 1\right ) + 384 \, b c^{6} d^{4} x^{6} \log \left (x\right ) - 390 \, b c^{5} d^{4} x^{5} - 6 \, {\left (15 \, a + 32 \, b\right )} c^{4} d^{4} x^{4} - 20 \, {\left (12 \, a + 5 \, b\right )} c^{3} d^{4} x^{3} - 18 \, {\left (15 \, a + 2 \, b\right )} c^{2} d^{4} x^{2} - 6 \, {\left (24 \, a + b\right )} c d^{4} x - 30 \, a d^{4} - 3 \, {\left (15 \, b c^{4} d^{4} x^{4} + 40 \, b c^{3} d^{4} x^{3} + 45 \, b c^{2} d^{4} x^{2} + 24 \, b c d^{4} x + 5 \, b d^{4}\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{180 \, x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.82, size = 291, normalized size = 1.93 \begin {gather*} \begin {cases} - \frac {a c^{4} d^{4}}{2 x^{2}} - \frac {4 a c^{3} d^{4}}{3 x^{3}} - \frac {3 a c^{2} d^{4}}{2 x^{4}} - \frac {4 a c d^{4}}{5 x^{5}} - \frac {a d^{4}}{6 x^{6}} + \frac {32 b c^{6} d^{4} \log {\left (x \right )}}{15} - \frac {32 b c^{6} d^{4} \log {\left (x - \frac {1}{c} \right )}}{15} + \frac {b c^{6} d^{4} \operatorname {atanh}{\left (c x \right )}}{30} - \frac {13 b c^{5} d^{4}}{6 x} - \frac {b c^{4} d^{4} \operatorname {atanh}{\left (c x \right )}}{2 x^{2}} - \frac {16 b c^{4} d^{4}}{15 x^{2}} - \frac {4 b c^{3} d^{4} \operatorname {atanh}{\left (c x \right )}}{3 x^{3}} - \frac {5 b c^{3} d^{4}}{9 x^{3}} - \frac {3 b c^{2} d^{4} \operatorname {atanh}{\left (c x \right )}}{2 x^{4}} - \frac {b c^{2} d^{4}}{5 x^{4}} - \frac {4 b c d^{4} \operatorname {atanh}{\left (c x \right )}}{5 x^{5}} - \frac {b c d^{4}}{30 x^{5}} - \frac {b d^{4} \operatorname {atanh}{\left (c x \right )}}{6 x^{6}} & \text {for}\: c \neq 0 \\- \frac {a d^{4}}{6 x^{6}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 634 vs.
\(2 (133) = 266\).
time = 0.42, size = 634, normalized size = 4.20 \begin {gather*} \frac {8}{45} \, {\left (12 \, b c^{5} d^{4} \log \left (-\frac {c x + 1}{c x - 1} - 1\right ) - 12 \, b c^{5} d^{4} \log \left (-\frac {c x + 1}{c x - 1}\right ) + \frac {6 \, {\left (\frac {15 \, {\left (c x + 1\right )}^{5} b c^{5} d^{4}}{{\left (c x - 1\right )}^{5}} + \frac {30 \, {\left (c x + 1\right )}^{4} b c^{5} d^{4}}{{\left (c x - 1\right )}^{4}} + \frac {40 \, {\left (c x + 1\right )}^{3} b c^{5} d^{4}}{{\left (c x - 1\right )}^{3}} + \frac {30 \, {\left (c x + 1\right )}^{2} b c^{5} d^{4}}{{\left (c x - 1\right )}^{2}} + \frac {12 \, {\left (c x + 1\right )} b c^{5} d^{4}}{c x - 1} + 2 \, b c^{5} d^{4}\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{\frac {{\left (c x + 1\right )}^{6}}{{\left (c x - 1\right )}^{6}} + \frac {6 \, {\left (c x + 1\right )}^{5}}{{\left (c x - 1\right )}^{5}} + \frac {15 \, {\left (c x + 1\right )}^{4}}{{\left (c x - 1\right )}^{4}} + \frac {20 \, {\left (c x + 1\right )}^{3}}{{\left (c x - 1\right )}^{3}} + \frac {15 \, {\left (c x + 1\right )}^{2}}{{\left (c x - 1\right )}^{2}} + \frac {6 \, {\left (c x + 1\right )}}{c x - 1} + 1} + \frac {\frac {180 \, {\left (c x + 1\right )}^{5} a c^{5} d^{4}}{{\left (c x - 1\right )}^{5}} + \frac {360 \, {\left (c x + 1\right )}^{4} a c^{5} d^{4}}{{\left (c x - 1\right )}^{4}} + \frac {480 \, {\left (c x + 1\right )}^{3} a c^{5} d^{4}}{{\left (c x - 1\right )}^{3}} + \frac {360 \, {\left (c x + 1\right )}^{2} a c^{5} d^{4}}{{\left (c x - 1\right )}^{2}} + \frac {144 \, {\left (c x + 1\right )} a c^{5} d^{4}}{c x - 1} + 24 \, a c^{5} d^{4} + \frac {78 \, {\left (c x + 1\right )}^{5} b c^{5} d^{4}}{{\left (c x - 1\right )}^{5}} + \frac {294 \, {\left (c x + 1\right )}^{4} b c^{5} d^{4}}{{\left (c x - 1\right )}^{4}} + \frac {472 \, {\left (c x + 1\right )}^{3} b c^{5} d^{4}}{{\left (c x - 1\right )}^{3}} + \frac {399 \, {\left (c x + 1\right )}^{2} b c^{5} d^{4}}{{\left (c x - 1\right )}^{2}} + \frac {174 \, {\left (c x + 1\right )} b c^{5} d^{4}}{c x - 1} + 31 \, b c^{5} d^{4}}{\frac {{\left (c x + 1\right )}^{6}}{{\left (c x - 1\right )}^{6}} + \frac {6 \, {\left (c x + 1\right )}^{5}}{{\left (c x - 1\right )}^{5}} + \frac {15 \, {\left (c x + 1\right )}^{4}}{{\left (c x - 1\right )}^{4}} + \frac {20 \, {\left (c x + 1\right )}^{3}}{{\left (c x - 1\right )}^{3}} + \frac {15 \, {\left (c x + 1\right )}^{2}}{{\left (c x - 1\right )}^{2}} + \frac {6 \, {\left (c x + 1\right )}}{c x - 1} + 1}\right )} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.24, size = 248, normalized size = 1.64 \begin {gather*} \frac {32\,b\,c^6\,d^4\,\ln \left (x\right )}{15}-\frac {16\,b\,c^6\,d^4\,\ln \left (c^2\,x^2-1\right )}{15}-\frac {3\,a\,c^2\,d^4}{2\,x^4}-\frac {4\,a\,c^3\,d^4}{3\,x^3}-\frac {a\,c^4\,d^4}{2\,x^2}-\frac {b\,c^2\,d^4}{5\,x^4}-\frac {5\,b\,c^3\,d^4}{9\,x^3}-\frac {16\,b\,c^4\,d^4}{15\,x^2}-\frac {13\,b\,c^5\,d^4}{6\,x}-\frac {a\,d^4}{6\,x^6}-\frac {4\,a\,c\,d^4}{5\,x^5}-\frac {b\,c\,d^4}{30\,x^5}-\frac {b\,d^4\,\mathrm {atanh}\left (c\,x\right )}{6\,x^6}-\frac {13\,b\,c^7\,d^4\,\mathrm {atan}\left (\frac {c^2\,x}{\sqrt {-c^2}}\right )}{6\,\sqrt {-c^2}}-\frac {4\,b\,c\,d^4\,\mathrm {atanh}\left (c\,x\right )}{5\,x^5}-\frac {3\,b\,c^2\,d^4\,\mathrm {atanh}\left (c\,x\right )}{2\,x^4}-\frac {4\,b\,c^3\,d^4\,\mathrm {atanh}\left (c\,x\right )}{3\,x^3}-\frac {b\,c^4\,d^4\,\mathrm {atanh}\left (c\,x\right )}{2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________